
<?php
include ("../inc/config.inc.php");
include ("../inc/mysql.inc.php");
$link = connect();
$template['title'] = '父板块列表';
?>
<?php
    include ("../admin/inc/header.inc.php");
?>
<div id="main" style="height:1000px;">
    <div class="title">父版块信息</div>
    <table class="list">
        <tr>
            <th>排序</th>
            <th>版块名称</th>
            <th>操作</th>
        </tr>
        <?php
        $query = "select * from sfk_father_module";
        $result = execute($link,$query);
        while ($data = $result->fetch_assoc()) {
        ?>
            <tr>
                <td><input class="sort" type="text" name="sort" /></td>
                <td><?=$data["module_name"]?>(<?=$data["id"]?>)</td>
                <td><a href="#">[访问]</a>&nbsp;&nbsp;<a href="father_module_update.php?id=<?=$data['id']?>">[编辑]</a>&nbsp;&nbsp;<a href="father_module_delete.php?id=<?=$data["id"]?>" onclick="return del()">[删除]</a></td>
            </tr>
        <?php
        }
        ?>
    </table>
    <script>
        function del() {
            var msg = "请确定彻底删除吗？\n\n";
            var mes = "该操作不可逆！！\n\n请再次确定 ";
            if (confirm(msg) == true && confirm(mes)) {
                return true;
            } else {
                return false;
            }
        }
    </script>
    <input class="btn" type="submit" name="submit" value="排序" />
</div>
</body>
</html>